package com.huawang.mdesign.model.service.dto.changeanalyse;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import com.huawang.business.dto.changeanalyse.ChangeAnalyseRuleInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

/**
 * @author baibf
 * @description 分析变更规则
 * @date 2023/4/21 15:56
 **/
@Data
public class ChangeAnalyseRuleDto extends ProjectIdDTO {

    private String projectId;

    @Schema(title = "新增的规则")
    @NotEmpty(message = ParamErrorConstants.NO_ADD_RULES)
    private List<ChangeAnalyseRuleInfo> addRules = new ArrayList<>();

    @Schema(title = "删除的规则")
    @NotEmpty(message = ParamErrorConstants.NO_DELETE_RULES)
    private List<ChangeAnalyseRuleInfo> deleteRules = new ArrayList<>();

    @Schema(title = "修改的规则")
    @NotEmpty(message = ParamErrorConstants.NO_UPDATE_RULES)
    private List<ChangeAnalyseRuleInfo> updateRules = new ArrayList<>();

}
